<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
    <title>添加内部工作人员页面</title>
    <base href="<%=basePath %>"/>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="favicon.ico" >
    <link rel="Shortcut Icon" href="favicon.ico" />
    <link rel="stylesheet" type="text/css" href="assets/H-ui/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="assets/H-ui/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="assets/H-ui/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="assets/H-ui/static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="assets/H-ui/static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" href="assets/css/bootstrap.css"/>

    <link rel="stylesheet" type="text/css" href="assets/css/main.css">

</head>
<body>
<article class="cl pd-20">
    <form action="manageWork/addWork.action" method="post" class="form form-horizontal" id="form-admin-add">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>姓名：</label>
            <div id="workName11" class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="" placeholder="" id="workName" name="workName" onblur="nonEmpty(this.id, '姓名')">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>帐号：</label>
            <div id="account11" class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="" placeholder="" id="account" name="account" onblur="accountCheck(this.id, '帐号')">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>密码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="password" class="input-text" autocomplete="off" value="" placeholder="" id="password" name="workPwd1" onblur="nonEmpty(this.id,'密码')">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>确认密码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="password" class="input-text" autocomplete="off"  placeholder="" id="password2" name="workPwd" onblur="pwdCheck(this.id,'密码')">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">性别：</label>
            <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                <div class="radio-box">
                    <input name="workSex" type="radio" id="workSex_1" value="1" checked>
                    <label for="workSex_1">男</label>
                </div>
                <div class="radio-box">
                    <input name="workSex" type="radio" id="workSex_2" value="2">
                    <label for="workSex_2">女</label>
                </div>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>年龄：</label>
            <div id="workAge11" class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="" placeholder="" id="workAge" name="workAge" onblur="workAgeCheck(this.id,'年龄')">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>手机：</label>
            <div id="mobile11" class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="" placeholder="" id="mobile" name="mobile" onblur="modeleCheck(this.id,'手机号')">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>职位：</label>
            <div id="post11" class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="" placeholder="" id="post" name="post" onblur="nonEmpty(this.id,'职位')">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>学历：</label>
            <div id="education11" class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="" placeholder="" id="education" name="education" onblur="nonEmpty(this.id,'学历')">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>选择科室：</label>
            <div id="deskId11" class="formControls col-xs-8 col-sm-9">
                <select name="deskId" id="deskId" class="input-text input-text12">
                    <option value="0">请选择科室</option>
                    <c:if test="${not empty DeskAll22}">
                        <c:forEach items="${DeskAll22}" var="DeskAll">
                            <option value="${DeskAll.deskId}"${param.deskId==DeskAll.deskId?'selected':''}>${DeskAll.deskName}</option>
                        </c:forEach>
                    </c:if>
                </select>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>选择角色：</label>
            <div id="roleId11" class="formControls col-xs-8 col-sm-9">
                <select name="roleId" id="roleId" class="input-text input-text12">
                    <option value="0">请选择角色</option>
                    <c:if test="${not empty RoleAll22}">
                        <c:forEach items="${RoleAll22}" var="RoleAll">
                            <option value="${RoleAll.roleId}"${param.roleId==RoleAll.roleId?'selected':''}>${RoleAll.roleName}</option>
                        </c:forEach>
                    </c:if>
                </select>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>住址：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <textarea name="workSite" id="workSite" cols="" rows="" class="textarea"  placeholder="填写住址信息" dragonfly="true" onKeyUp="textarealength(this,100)"></textarea>
                <p class="textarea-numberbar"><%--<em class="textarea-length">0</em>/100--%></p>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <%--<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">--%>
                <input class="btn btn-primary radius" type="button" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" onclick="submission1()">
            </div>
        </div>
    </form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="assets/H-ui/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="assets/H-ui/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="assets/H-ui/static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="assets/H-ui/static/h-ui.admin/js/H-ui.admin.page.js"></script>

<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="assets/H-ui/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="assets/H-ui/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="assets/H-ui/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script type="text/javascript" src="assets/js/addWork.js"></script>
<script type="text/javascript">


</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>